package com.cyj.dream.admin.service.system.impl;

import com.cyj.dream.admin.model.system.config.SendMessage;
import com.cyj.dream.admin.persistence.manager.systems.config.SendMessageManager;
import com.cyj.dream.admin.service.system.SendMessageService;
import com.cyj.dream.core.constant.pagemodel.Response;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 阿里云短信信息服务实现类
 * @BelongsProject: dream-DreamChardonnay
 * @BelongsPackage: com.dream.DreamChardonnay.service.impl
 * @Author: ChenYongJia
 * @CreateTime: 2021-05-19 10:47
 * @Email: chen87647213@163.com
 * @Version: 1.0
 */
@Slf4j
@Service
public class SendMessageServiceImpl implements SendMessageService {

    @Autowired
    private SendMessageManager sendMessageManager;

    /**
     * 添加阿里云短信模板信息
     *
     * @param sendMessage 阿里云短信实体类
     * @return com.dream.DreamChardonnay.constant.model.Response
     * @date 2021/5/19 10:35
     * @author ChenYongJia
     * @version 1.0
     */
    @Override
    public Response addSendMessage(SendMessage sendMessage) {
        return sendMessageManager.addSendMessage(sendMessage);
    }

    /**
     * 修改阿里云短信模板信息
     *
     * @param sendMessage 阿里云短信实体类
     * @return com.dream.DreamChardonnay.constant.model.Response
     * @date 2021-5-19 10:44:07
     * @author ChenYongJia
     * @version 1.0
     */
    @Override
    public Response updateSendMessage(SendMessage sendMessage) {
        return sendMessageManager.updateSendMessage(sendMessage);
    }

    /**
     * 删除阿里云短信模板信息
     *
     * @param sendMessage 阿里云短信实体类
     * @return com.dream.DreamChardonnay.constant.model.Response
     * @date 2021-5-19 10:46:21
     * @author ChenYongJia
     * @version 1.0
     */
    @Override
    public Response deleteSendMessage(SendMessage sendMessage) {
        return sendMessageManager.deleteSendMessage(sendMessage);
    }

}
